home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDXPCH / DEFS.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  2.8 KB  |  115 lines

  1. ;+
  2. ; Conditional assembly
  3. ;-
  4. DRIVER    equ    0            ; 0: not compiling for AHDI.PRG
  5. DEBUG    equ    1            ; 0: don't include debugging code
  6. RDWDL    equ    0            ; 0: don't need extra read from WDL
  7.  
  8. SCSIID    equ    6            ; our (host) SCSI ID
  9.  
  10.  
  11. ;+
  12. ; Restraints 
  13. ;-
  14. MAXLOG        equ    14        ; max # of log units w/o drv A & B
  15. MAXACSI        equ    8        ; maximum number of ACSI devices
  16. MAXSCSI        equ    8        ; maximum number of SCSI devices
  17. MAXIDE        equ    1        ; maximum number of IDE devices
  18. ACSIUNT        equ    7        ; highest ACSI unit number
  19. SCSIUNT        equ    15        ; highest SCSI unit number
  20. IDEUNT        equ    16        ; highest IDE unit number
  21. MAXACSECTS    equ    254        ; max # of sectors/ACSI gulp
  22. MAXSPSECTS    equ    16383        ; max # of sectors/Sparrow SCSI gulp
  23.                     ; Set from 16384 LT
  24. MAXSCSECTS    equ    65534        ; max # of sectors/SCSI gulp
  25. MAXIDESECTS    equ    256        ; max # of sectors/IDE gulp
  26.  
  27.  
  28. ;+
  29. ; Machine type as defined in the _MCH cookie
  30. ;-
  31. _MCH    equ $5f4d4348        ; _MCH
  32. ST        equ    0
  33. STE        equ    $00010000
  34. STBOOK        equ    $00010008
  35. MSTE        equ    $00010010
  36. TT        equ    $00020000
  37. SPARROW        equ    $00030000    ; Changed to reflect ROMs LT
  38.  
  39. ;+
  40. ; Offsets to ...
  41. ;-
  42. DOSPM        equ    $1be        ; MSDOS boot sect's partition map
  43. DOSSIG        equ    $1fe        ; MSDOS boot sect's signature
  44. HDSIZ        equ    $1c2        ; offset to GEMDOS root sect's 
  45.  
  46.  
  47. ;+
  48. ; Constants and Variables
  49. ;-
  50. SIG        equ    $55aa        ; signature for valid MSDOS boot sects
  51. NRETRIES    equ    3        ; #retries-1
  52. MAXNPART    equ    3        ; #partition entries in root sect - 1
  53. BPBLEN        equ    18        ; length of bpb entry in bytes
  54. FATLEN        equ    6        ; max fat size = 2**6 = 64 sectors
  55. SERLEN        equ    3        ; length of a serial # in bytes
  56. CHKDATE        equ    $19870422    ; ROM date for bootstop checking
  57.  
  58.  
  59. ;+
  60. ; Number of bytes per Buffer Control Block (excluding the data block itself)
  61. ;
  62. ; struct_bcb {
  63. ;     struct_bcb    *b_link;    /* 4 bytes */
  64. ;    int        b_neg1;        /* 2 bytes */
  65. ;    int        b_private[5];    /* 10 bytes */
  66. ;    char        *b_bufr;    /* 4 bytes */
  67. ; };
  68. ;
  69. ; For GEMDOS buffer lists.
  70. ;-
  71. BCBLEN        equ    20
  72.  
  73.  
  74. ;+
  75. ; Number of bytes per IDE drive parameters structure
  76. ;
  77. ; struct_idedp {
  78. ;    int    nhead;        /* # of data heads */
  79. ;    int    nspt;        /* # of physical sectors per track */
  80. ; };
  81. ;-
  82. IDEDPLEN    equ    4
  83.  
  84.  
  85. ;+
  86. ; for extension of OS pool
  87. ;-
  88. chunksiz    equ     66        ; #bytes/chunk
  89. chunkno        equ     4        ; chunk# (4 16-byte chunks)
  90.  
  91.  
  92. ;+
  93. ; for checking existence of fast RAM
  94. ;    If long word at _ramvalid == RAMMAGIC
  95. ; then  _ramtop is valid.  If _ramtop contains 0, no fast RAM is available,
  96. ; else _ramtop contains the address of top (end) of memory
  97. ;
  98. ; Fast RAM always starts at $01000000.
  99. ; _ramtop may hold $01000000 meaning there is no fast RAM!
  100. ;
  101. ; RAMRSV must be smaller than MAXACSECTS
  102. ;-
  103. RAMMAGIC    equ    $1357bd13    ; magic cookie for fast RAM
  104. RAMBOT        equ    $01000000    ; where fast RAM starts
  105. RAMRSV        equ    $80        ; # sectors of reserved RAM (64k)
  106.  
  107.  
  108. ;+
  109. ; Vector address
  110. ;-
  111. BERR        equ    $8        ; Bus ERRor vector
  112. IINS        equ    $10        ; Illegal INStruction vector
  113.  
  114.  
  115.